package com.xiaogao.serviceEdu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 小高
 * @createtime 2021-07-08-23:51
 * @description
 */
@Component
@FeignClient(name = "service-order",fallback = OrderFileDegradeFeignClient.class)
public interface OrderClient {

    // 查询订单信息
    @GetMapping("/serviceOrder/order/isBuyCourse/{memberId}/{courseId}")
    public boolean isBuyCourse(
            @PathVariable("memberId") String memberId,
            @PathVariable("courseId") String courseId);
}
